using System;
using System.Windows.Controls;

namespace jSLCore.Client.Presentation.BaseControl.Selection
{
    public class NormalCheckBox : CheckBox
    {
        public NormalCheckBox()
        {
            LayoutUpdated+=OnLayoutUpdated;
        }

        private void OnLayoutUpdated(object sender, EventArgs eventArgs)
        {
            InvokeLayoutUpdatedNormal();
        }

        public event EventHandler LayoutUpdatedNormal;

        public void InvokeLayoutUpdatedNormal()
        {
            EventHandler handler = LayoutUpdatedNormal;
            if (handler != null) handler(this, EventArgs.Empty);
        }
    }
}